﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Saxxon.LibDoomSharp.Lumps
{
    public class HexenLinedefs : TableLump<HexenLinedefsEntry>
    {
        /// <summary>
        /// Instantiate an empty Hexen LINEDEFS lump.
        /// </summary>
        public HexenLinedefs()
            : base()
        {
        }

        /// <summary>
        /// Instantiate a LINEDEFS lump from lump data.
        /// </summary>
        public HexenLinedefs(Lump sourceLump)
            : base(sourceLump)
        {
        }

        /// <summary>
        /// Length in bytes of a LINEDEFS entry.
        /// </summary>
        protected override int EntryLength
        {
            get { return HexenLinedefsEntry.ENTRY_LENGTH; }
        }

        /// <summary>
        /// Convert to a standard Lump.
        /// </summary>
        public override Lump ToLump()
        {
            Lump result = base.ToLump();
            result.Name = "LINEDEFS";
            return result;
        }
    }
}
